base64 = fig2base64(HWIN, format)
Convert figure to base64, to be used in HTML <img> element.
| HWIN | handle | handle of figure to convert to a base64 array |
| format | string | (optional) with image format, default value: png |
| base64 | string | Base64 coded image (for HTML) |
| data | int8[] | bytearray, use this with the correct mime-type (e.g. image/png) to directly display an image in the browser |